#ifndef __CK_CONNECTION_MYSQL_H__
#define __CK_CONNECTION_MYSQL_H__

#include "ckConnection.h"

namespace ck
{
	class ConnectionMySQL :public Connection
	{
	public:
		ConnectionMySQL();
		virtual ~ConnectionMySQL();

	public:
		virtual RESULTCODE	Open(const char* szHost, int port, const char* szDatabase, const char* szUser, const char* szPassword, const char* szDNS = NULL);
		virtual void		Close();
		virtual bool		IsOpen();

		virtual RESULTCODE	Execute(const char* szSQL);
		virtual Command*	CreateCommand();

		virtual ckDbType	GetDbType();

	private: 
		ADODB::_ConnectionPtr	m_pConnection;
	};

}


#endif //__CK_CONNECTION_MYSQL_H__